package cn.interfacehomework04;

public class BloodWarrior extends Warrior {
    public int injure(int x) {
        blood = blood - x;
        System.out.println("受伤了，当前血液值为：" + blood);
        if (blood < MAX /2) {
            System.out.println("危险，快点退出战斗！");
        }
        return blood;
    }
}
